package cc.rengu.igas.bomp.facade.enums;

/**
 * 管理操作枚举
 *
 * @author: zhangxuran
 * @Date: 2020/3/29 16:12
 * @Description:
 */
public enum BompManageOprTypeEnum {


    CREATE("01", "新增"),
    MODIFY("02", "修改"),
    AUDIT("03", "审核");

    private String type;

    private String desc;

    BompManageOprTypeEnum(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public String getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }

    public static boolean isBompManageOprTypeByType(String type) {

        for (BompManageOprTypeEnum bompManageOprType : BompManageOprTypeEnum.values()) {
            if (bompManageOprType.getType().equals(type)) {
                return true;
            }
        }

        return false;
    }
}
